package com.example.demo.mp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@TableName("short_url")
@Data
public class ShortUrl implements Serializable {
    @TableId(
            type = IdType.ASSIGN_ID
    )
    private Long id;
    @TableField(value = "short_name")
    private String shortName;
    private String url;
    private String urlMd5;
    private Date creatTime;
    private Long clickCount;

    @TableField(exist = false)
    private String status;
}
